<%@page import="com.jhs.kjs.model.file.IFileManager"%>
<%@page import="com.jhs.kjs.model.file.FileMangerImage"%>
<%@page import="java.io.File"%>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"
	import="com.jhs.kjs.dto.CustomerDTO"%>

<%
	HttpSession sess = request.getSession();
	CustomerDTO customer = new CustomerDTO();
	String filePath = "qronet.png";
	if (sess != null && sess.getAttribute("customer") != null) {
		customer = (CustomerDTO) sess.getAttribute("customer");
		IFileManager fm = new FileMangerImage(request);

		if (fm.loadFile(customer.getLogoFile())) {
			filePath = fm.getDownloadFilePath()
					+ customer.getLogoFile();
		} else {
			filePath = "qronet.png";
		}
	} else {
		customer.setLogoFile("qronet.png");
	}
%>
<img src="${imgUrl}/<%=filePath %>"
	onclick="location.href='/dashBoard/main'" style="cursor: pointer" />